package com.winter.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.winter.service.CompanyUserService;
import com.winter.util.Result;

@RestController
@RequestMapping("/companyuser")
public class CompanyUserController {

    @Autowired
    private CompanyUserService service;

    /**
     * 根据userNo查询公司
     */
    @GetMapping("/queryuser")
    public Result queryByUserNo(Integer pageSize, Integer pageNumber, String userNo, String companyName, Long companyId) {
        return service.queryByUserNo(pageSize, pageNumber, userNo, companyName, companyId);
    }

    /**
     * 选择职位列表
     */
    @GetMapping("/querposition")
    public Result queryPositionList(String userNo, String jobFunction) {
        return service.queryPositionList(userNo, jobFunction);
    }
}
